﻿namespace Revit同步插件
{



  using Autodesk.Revit.DB;
  using Autodesk.Revit.UI;
  [Autodesk.Revit.Attributes.Transaction(Autodesk.Revit.Attributes.TransactionMode.Manual)]
  class Xceed属性面板 : IExternalCommand
  {


    UIApplication _uiapp;
    public Autodesk.Revit.UI.Result Execute(Autodesk.Revit.UI.ExternalCommandData commandData,
    ref string message,
    Autodesk.Revit.DB.ElementSet elements)
    {

      try
      {
        _uiapp = commandData.Application;
        UIDocument uidoc = _uiapp.ActiveUIDocument;
        Document doc = uidoc.Document;




        return Autodesk.Revit.UI.Result.Succeeded;
      }
      catch (System.Exception ex)
      {
        message = ex.Message;
        return Autodesk.Revit.UI.Result.Failed;
      }
    }
  }

}
